import request from '@/utils/request'

/**
 * 获取限时秒杀轮播
 * @returns
 */

export function getActiveDiscountConfig() {
    return request.get(`promotion/seckill-config/list`, {}, { isYuDao: true });
}


/**
 * 获取限时秒杀列表
 * @returns
 */
export function getActiveDiscountList(params: Record<string, any>) {
    return request.get(`promotion/seckill-config/list`, params, { isYuDao: true });

}

/**
 * 获取限时秒杀商品列表
 * @returns
 */
export function getActiveDiscountGoodsList(params: Record<string, any>) {
    return request.get(`promotion/seckill-activity/page`, params, { isYuDao: true })
}
/**
  * 获得秒杀活动明细
  * @param {number} id 秒杀活动编号
  * @return {*}
  */
export function getSeckillActivity(params: Record<string, any>) {
    return request.get(`promotion/seckill-activity/get-detail`, params, { isYuDao: true })
}
